package com.haircut.sys.vo.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Setter
@Getter
public class UpdatePwdVo {
    /**
     * 旧密码
     */
    @ApiModelProperty("旧密码")
    @NotBlank(message = "旧密码必须填写")
    @Length(min = 6,max = 20,message = "旧密码的范围[6~10]位")
    private String oldPassword;
    /**
     * 新密码
     */
    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码必须填写")
    @Length(min = 6,max = 20,message = "新密码的范围[6~10]位")
    private String newPassword;
}
